package linearlist;

import java.lang.reflect.Field;
import java.util.Arrays;

/**
 * @Author Zhouchb
 * @Create 2021-10-2021/10/27 :11:01
 * @Description
 */
public class SequenceListTest {
    public static void main(String[] args) throws NoSuchFieldException {
        SequenceList<String> sequenceList = new SequenceList<>(10);
        sequenceList.insert("林动");
        sequenceList.insert("萧炎");
        sequenceList.insert("周元");
        System.out.println(sequenceList.get(0));
        sequenceList.insert(1,"应欢欢");
        System.out.println(sequenceList.get(1));
        SequenceList2<String> sequenceList2 = new SequenceList2<>(3);
        sequenceList2.insert("林动1");
        sequenceList2.insert("林动2");
        sequenceList2.insert("林动31");
        sequenceList2.insert("林动4");
        sequenceList2.insert("林动5");

        LinkList<String> list = new LinkList<>();
        list.insert("萧炎1");
        list.insert("萧炎2");
        list.insert("萧炎3");
        list.insert("萧炎4");
        for (Object o : list) {
            System.out.println(o);
        }
        System.out.println(list.remove(2));
    }
}
